<?php

namespace App\Http\Controllers;

use App\Services\CompanyServices;
use App\Services\JobServices;
use Illuminate\Http\Request;

class HomeController extends WxController
{
    //首页接口
    public function index(){
          $data = [];
          //热门工作
          $hotJob = JobServices::getInstance()->getHotJob();
          //热门企业
          $hotCompany = CompanyServices::getInstance()->getCompanyHot();
          //热门分类
              $data['hotJob'] = $hotJob;
          $data['hotCompany'] = $hotCompany;
          return $this->success($data);
    }
}
